package com.ruoyi.djb.service;

import com.ruoyi.djb.domain.DjbDistrict;
import com.ruoyi.djb.domain.DjbGate;
import com.ruoyi.djb.mapper.DjbDistrictMapper;
import com.ruoyi.djb.mapper.DjbGateMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("common")
public class commonService {

    @Resource
    private DjbDistrictMapper districtMapper;
    @Resource
    private DjbGateMapper djbGateMapper;

    /**
     *
     * @auther: xxd
     */
    public List<DjbDistrict> districtList(){
        List<DjbDistrict> djbDistricts = districtMapper.selectDjbDistrictList(new DjbDistrict());
        return djbDistricts;
    }

    /**
     *
     * @auther: xxd
     */
    public List<DjbGate> gateList(){
        List<DjbGate> djbGates = djbGateMapper.selectDjbGateList(new DjbGate());
        return djbGates;
    }
}
